package cn.edu.scau.cmi.liuyonglin.chapter7;

public class MainE {

	public static void main(String[] args) {
		Dog yellowDog = new Dog();
		yellowDog.cry();
		
		yellowDog.setState(new SoftlyState());
		yellowDog.cry();
		yellowDog.setState(new MeetEnemyState());
		yellowDog.cry();
		yellowDog.setState(new MeetFriendState());
		yellowDog.cry();

	}

}
